<?php
use Workerman\Worker;
use Workerman\Lib\Timer;

require_once __DIR__."/../Autoloader.php";

$work = new Worker("tcp://0.0.0.0:1234");
#4个进程
$work->name="workman i am come";
$work->onWorkerStart=function($work){
    echo "Work staring..";
};


Worker::runAll();